package com.jxy.edu.manage_course.service;

import com.jxy.edu.domain.system.SysDictionary;
import com.jxy.edu.manage_course.dao.SysDictionaryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lumi
 * @date 2020/2/12 2:27
 */
@Service
public class SysdictionaryService {
    @Autowired
    SysDictionaryDao sysDictionaryDao;
    //根据字典分类type查询字典信息
    public SysDictionary findDictionaryByType(String type){
        SysDictionary bydType = sysDictionaryDao.findBydType(type);
        System.out.println(bydType);
        return bydType;
    }
}
